package com.poizon.service.intf;

import com.poizon.bo.CodeBo;
import com.poizon.bo.PasswordLoginBo;
import com.poizon.entity.User;
import com.poizon.vo.R;

/**
 * @ClassName UserService
 * @Author NoCheng
 * @Date 2022/1/2 9:58
 * @Description:TODO 用户登录业务接口层
 */

public interface UserService {
    //账号密码登录
    R login(PasswordLoginBo bo, String ip);
    //手机号登录, 注册
    R login(CodeBo bo, String ip);
    //校验手机号是否已经注册
    User selectByPhone(String phone);
    //注销，退出登录
    R loginOut(String token);
    //校验令牌是否有效
    R checkToken(String token);
}

